package com.lovo.commom.remoteMethod;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name ="sscSysTwo" ,path = "/product",contextId = "sysProductId")
public interface ISysProductRemote {
    /**
     * 拉取闲置商品
     * @return
     */
    @GetMapping("findByProductStatus")
    public String findByProductStatus();

    /**
     * 修改商品状态
     * @param productName
     * @param status
     */
    @GetMapping("updateProductStatus")
    public boolean updateProductStatus(@RequestParam("productName") String productName, @RequestParam("status") int status);

    @GetMapping("outKu")
    public boolean outKu(@RequestParam("productName") String productName,@RequestParam("specs") String specs,@RequestParam("num") int num);

    @GetMapping("addSnowId")
    public boolean addSnowId(@RequestParam("productName") String productName,@RequestParam("snowId") String snowId);
    @GetMapping("updateProductInfoPrice")
    public boolean updateProductInfoPrice(@RequestParam("obj") String obj);
}
